
<?php 

function get_dangqun($lang = 'zh') {
    $where = ' WHERE cat_id=\'18\' and lang=\''. $lang.'\'';

    $sql = "SELECT id, cat_id, lang, url FROM " . $GLOBALS['dou']->table('article') .$where;
    $query = $GLOBALS['dou']->query($sql);
    while ($row = $GLOBALS['dou']->fetch_array($query)) {
        $url =  $row['url'];
    }

    return  $url;
}

function get_zhaosheng($lang = 'zh') {
    $where = ' WHERE cat_id=\'15\' and lang=\''. $lang.'\'';

    $sql = "SELECT id, cat_id, lang, url FROM " . $GLOBALS['dou']->table('article') .$where;
    $query = $GLOBALS['dou']->query($sql);
    while ($row = $GLOBALS['dou']->fetch_array($query)) {
        $url =  $row['url'];
    }

    return  $url;
}

?>
